import { commonRequestApi } from './request';

//列表查询
export const getListApi = (data: any) =>
  commonRequestApi('/wine-internet-community/activity/list', data, 'POST');

//活动详情
export const getDetailApi = (data: any) =>
  commonRequestApi('/wine-internet-community/activity/detail', data, 'POST');

//活动报名
export const signUpApi = (data: any) =>
  commonRequestApi('/wine-internet-community/activity/signup', data, 'POST');

//我的活动
export const myListApi = (data: any) =>
  commonRequestApi('/wine-internet-community/activity/myList', data, 'POST');

//活动取消报名
export const cancelSignUpApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/activity/cancelSignUp',
    data,
    'POST'
  );

//查看二维码
export const queryQrCodeApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/activity/queryQrCode',
    data,
    'POST'
  );

//扫码核销
export const verifyApi = (data: any) =>
  commonRequestApi('/wine-internet-community/activity/verify', data, 'POST');

//区域列表
export const citylistApi = (data: any) =>
  commonRequestApi('/wine-internet-community/activity/city/list', data, 'POST');

//查询活动回顾
export const reviewArticleApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/activity/reviewArticle',
    data,
    'POST'
  );

//我的发布-删除
export const myPublishDelApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/publish/my/del',
    data,
    'POST'
  );
